<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>重设密码成功</title>
    <link rel="stylesheet" type="text/css" th:href="${#request.getContextPath()}+'/static/css/normalize.css'"/>
    <link rel="stylesheet" type="text/css" th:href="${#request.getContextPath()}+'/static/css/loginCss.css'"/>
    <style type="text/css">
        html,body{ background:none }
    </style>

</head>
<body>
<div class="login-top login-top-green">
    <p>
        <span>安亭养老</span>
        <em>欢迎登陆</em>
    </p>
</div>
<div class="login-box">
    <div class="login-status-con">
        <ul class="login-status-one">
            <li>
                <p class="current">身份验证</p>
                <p class="current">1</p>
            </li>
            <li>
                <p class="current">找回密码</p>
                <p class="current">2</p>
            </li>
            <li>
                <p class="current">完成</p>
                <p class="current">3</p>
            </li>
        </ul>
        <nav class="login-status-two login-status-pass textCenter mt30px">
            <dl class="inline-block">
                <dt><img th:src="@{/static/img/icon_succeed.png}">恭喜您密码设置成功！</dt>
                <dd>
                    <span class="bgGreen white cursor" onclick="returnLogin()">立即跳转</span>
                </dd>
            </dl>
        </nav>
    </div>
</div>
</div>
</body>
<script th:src="${#request.getContextPath()}+'/static/js/jquery-2.1.3.min.js'" charset="utf-8"></script>
<script th:inline="javascript">var basePath = [[${#httpServletRequest.getContextPath()}]];</script>
<script>
    $(function(){
        //延迟5秒后跳回首页
        var time=5;
        var interval=setInterval(function() {
            time--;
            //console.log(time);
            if (time==0) {
                clearInterval(interval);
                window.location.href=basePath;
            }
        },1000)
    })

    /**
     * 返回登陆
     */
    function returnLogin(){
        window.location.href=basePath;
    }
</script>
</html>
